package cn.jbolt.core.bean;
/**
 * Jbolt所属Module信息
 */
public class JBoltOfModuleInfo {
    public static final int PLATFORM_INNER_ADMIN = 1;
    public static final JBoltOfModuleInfo PLATFORM_INNER_ADMIN_INFO = new JBoltOfModuleInfo(PLATFORM_INNER_ADMIN);
    private int ofModule;
    private String ofModuleLink;

    public JBoltOfModuleInfo(int ofModule, String ofModuleLink) {
        this.ofModule = ofModule;
        this.ofModuleLink = ofModuleLink;
    }

    public JBoltOfModuleInfo(int ofModule) {
        this.ofModule = ofModule;
    }

    public int getOfModule() {
        return ofModule;
    }

    public void setOfModule(int ofModule) {
        this.ofModule = ofModule;
    }

    public String getOfModuleLink() {
        return ofModuleLink;
    }

    public void setOfModuleLink(String ofModuleLink) {
        this.ofModuleLink = ofModuleLink;
    }

    public boolean isPlatformInnerAdminCall(){
        return ofModule==0 || ofModule == PLATFORM_INNER_ADMIN;
    }
    public boolean isNotPlatformInnerAdminCall(){
        return !isPlatformInnerAdminCall();
    }
}
